import request from '@/utils/request'

export const userRegisterService = ({ username, password }) => {
  let param = new URLSearchParams()
  param.append('username', username)
  param.append('password', password)
  return request.post('/user/reg', param)
}

export const userLoginService = ({ username, password }) => {
  let param = new URLSearchParams()
  param.append('username', username)
  param.append('password', password)
  return request.post('/user/login', param)
}
